﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class DatMon : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
    {
        if (Button1.Enabled == true)
            Button1.Enabled = false;
        if (Button1.Enabled == false)
        {
            Button1.Enabled = true;
            TextBox1.Text = "0";
        }

    }
    protected void CheckBox2_CheckedChanged(object sender, EventArgs e)
    {
        if (Button2.Enabled == true)
        {
            Button2.Enabled = false;
            TextBox2.Text = "";
        }
        if (Button2.Enabled == false)
        {
            Button1.Enabled = true;
            TextBox1.Text = "0";
        }

    }
    protected void CheckBox3_CheckedChanged(object sender, EventArgs e)
    {
        if (Button3.Enabled == true)
        {
            Button3.Enabled = false;
            TextBox3.Text = "";
        }
        if (Button3.Enabled == false)
        {
            Button1.Enabled = true;
            TextBox1.Text = "0";
        }

    }
    protected void CheckBox4_CheckedChanged(object sender, EventArgs e)
    {
        if (Button4.Enabled == true)
        {
            Button4.Enabled = false;
            TextBox4.Text = "";
        }
        if (Button4.Enabled == false)
        {
            Button1.Enabled = true;
            TextBox1.Text = "0";
        }

    }
    protected void CheckBox5_CheckedChanged(object sender, EventArgs e)
    {
        if (Button5.Enabled == true)
        {
            Button5.Enabled = false;
            TextBox5.Text = "";
        }
        if (Button5.Enabled == false)
        {
            Button1.Enabled = true;
            TextBox1.Text = "0";
        }

    }
    protected void CheckBox6_CheckedChanged(object sender, EventArgs e)
    {
        if (Button6.Enabled == true)
        {
            Button6.Enabled = false;
            TextBox6.Text = "";
        }
        if (Button6.Enabled == false)
        {
            Button1.Enabled = true;
            TextBox1.Text = "0";
        }

    }
    protected void CheckBox7_CheckedChanged(object sender, EventArgs e)
    {
        if (Button7.Enabled == true)
        {
            Button7.Enabled = false;
            TextBox7.Text = "";
        }
        if (Button7.Enabled == false)
        {
            Button1.Enabled = true;
            TextBox1.Text = "0";
        }

    }
    protected void CheckBox8_CheckedChanged(object sender, EventArgs e)
    {
        if (Button8.Enabled == true)
        {
            Button8.Enabled = false;
            TextBox8.Text = "";
        }
        if (Button8.Enabled == false)
        {
            Button1.Enabled = true;
            TextBox1.Text = "0";
        }

    }
    protected void CheckBox9_CheckedChanged(object sender, EventArgs e)
    {
        if (Button9.Enabled == true)
        {
            Button9.Enabled = false;
            TextBox9.Text = "";
        }
        if (Button9.Enabled == false)
        {
            Button9.Enabled = true;
            TextBox1.Text = "0";
        }

    }
}
